//
//  FFPayPwdUpdateVM.m
//  LLWallet
//
//  Created by tt on 2020/9/1.
//

#import "FFPayPwdUpdateVM.h"

@implementation FFPayPwdUpdateVM

-(AnyPromise*) sendPayPwdUpdateCode {
     return [[WKAPIClient sharedClient] POST:@"impay/wallet/smscode/paypwd" parameters:nil];
}

-(AnyPromise*) verityPayPwdUpdateCode:(NSString*)code {
    return [[WKAPIClient sharedClient] POST:@"impay/wallet/smscode/paypwdverity" parameters:@{@"code":code?:@""}];
}

-(AnyPromise*) setPayPwd:(NSString*)pwd code:(NSString*)code {
    return [[WKAPIClient sharedClient] POST:@"impay/wallet/password" parameters:@{@"code":code?:@"",@"password":pwd?:@""}];
}

@end
